﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using CoreEx.Database.Linq.Translators;
using CoreEx.Database.Query.Expressions;
using LinFu.IoC.Configuration;

namespace CoreEx.Database.Linq.Implementation.Translators
{
    [Implements(typeof(IExpressionTranslator_generic<MethodCallExpression>), ServiceName = "Select")]
    public class SelectMethodCallExpressionTranslator : MethodCallExpressionTranslatorGeneric
    {
        public SelectMethodCallExpressionTranslator(TranslateResult translateResult) 
            : base(translateResult) {}

        public override DbExpression Translate(MethodCallExpression expression)
        {
            var dbSelectQuery = (DbQuery<DbSelectExpression>)Visit(expression.Arguments[0]);
            throw new NotImplementedException();
        }
    }
}
